import { createSlice } from "@reduxjs/toolkit";

const wsStore = createSlice({
  name: "ws",
  initialState: {
    ws: null,
  },
  reducers: {
    setWs: (state, action) => {
      state.ws = action.payload;
    },
  },
});

export const { setWs } = wsStore.actions;
export default wsStore.reducer;
